#ifndef TICTACTOE_H
#define TICTACTOE_H

#include <QDialog>
#include "button.h"

class TicTacToe : public QDialog
{
    Q_OBJECT;
public:
    TicTacToe(QWidget * parent);

private:
    void checkWin();
    void newGame();

private:
    Button * my_bttns[9];
    Button::DrawnItem my_turn;
    int my_turns_counter;

private slots:
    void buttonclicked(Button * button);
    void buttonStateChanged();

};

#endif // TICTACTOE_H
